﻿namespace builderDesignMode.Proxy
{
    public class ProxyFileUpload : IFileUpload
    {
        private IFileUpload fileUpload { get; set; }

        public ProxyFileUpload(IFileUpload upload) { fileUpload = upload; }

        public void Upload()
        {
            Validate();
            fileUpload.Upload();
        }

        public void Validate() 
        {
            Console.WriteLine("开始校验文件");
        }
    }
}
